﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserMasterPage.master" AutoEventWireup="true" CodeFile="ShowPrice.aspx.cs" Inherits="ShowPrice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
        <table align="center" class="style1">
            <tr>
                <td>
                    <asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
                        DataKeyNames="RES" DataSourceID="SqlDataSource2" EnableModelValidation="True">
                        <Columns>
                            <asp:BoundField DataField="RES" HeaderText="RES" ReadOnly="True" 
                                SortExpression="RES" />
                            <asp:TemplateField HeaderText="Money" SortExpression="Money">
                                <EditItemTemplate>
                                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Money") %>'></asp:TextBox>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("Money") %>'></asp:Label>
                                    &nbsp;$
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                        ConnectionString="<%$ ConnectionStrings:MyImage_eProjectSem3ConnectionString %>" 
                        SelectCommand="SELECT * FROM [Price] ORDER BY [Money]"></asp:SqlDataSource>
                </td>
            </tr>
        </table>
        <br />
    </p>
    <p>
    </p>
</asp:Content>

